package com.gite.nouette.admin.implementation.integrator.builder;

import com.gite.nouette.admin.contract.integrator.builder.IBuilderAdmin;
import com.gite.nouette.admin.contract.integrator.factory.IFactoryModel;
import com.gite.nouette.admin.contract.model.IAdmin;

public abstract class AbstractBuilderAdmin extends AbstractBuilder implements
		IBuilderAdmin {

	private IAdmin product;

	public AbstractBuilderAdmin(IFactoryModel factoryModel) {
		super(factoryModel);
	}

	@Override
	public IAdmin getProduct() {
		return this.product;
	}

	private void setProduct(IAdmin product) {
		this.product = product;
	}

	@Override
	public void createNewProduct() {
		setProduct(getFactoryModel().getAdmin());
	}
}
